#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        for (int i = 1; i <= a + 1; i++)
        {
            for (int j = 1; j <= (a + 1 - i) * 2 + i; j++)
            {
                if (j <= (a + 1 - i) * 2)
                    printf(" ");
                else
                    printf("*");
            }
            printf("\n");
        }
        for (int m = 1; m <= a; m++)
        {
            for (int n = 1; n <= m * 2 + a + 1 - m; n++)
            {
                if (n <= (m * 2))
                    printf(" ");
                else
                    printf("*");
            }
            printf("\n");
        }

    }
    return 0;
}


